import babel from '@rollup/plugin-babel'
import { terser } from 'rollup-plugin-terser'

export default {
  input: 'src/lib/index.js',
  output: {
    file: 'src/index.js',
    format: 'es'
  },
  plugins: [
    babel({
      exclude: 'node_modules/**',
      extensions: ['.js']
    }),
    terser()
  ],
  external: [
    'lodash-es'
  ]
}
